Customizing the certificate of the SMC server web interface
The certificate that the SMC server web administration interface presents can be customized in two ways:
- Log in to the SMC server via the console of your hypervisor or in SSH.
- Replace the files server.crt and server.key located in the folder
/etc/certs/uiserverwith your own certificates and private key. File permissions must remain the same. - Restart the server with the command
nrestart smc.
- or -
- Log in to the SMC server via the console of your hypervisor or in SSH.
- Overwrite the environment variable
SMC_UI_SERVER_CERT_PATHin the file /data/config/fwadmin-env.conf.local with the path of the folder that contains your own certificate and private key. - Restart the server with the command
nrestart smc.
To go back to factory settings:
-
Use the command
smc-gen-autosigned-certby indicating the destination folder and subject of the certificate. This command makes it possible to generate the SSL certificate presented to the web browser one more time. This certificate is self-signed.smc-gen-autosigned-cert /etc/certs/uiserver/ <certificate subject>
-
Restart the server with the command
nrestart smc.